<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/spiermar/d3-flame-graph@2.0.3/dist/d3-flamegraph.css">
    <script type="text/javascript">
        var target = [];
    </script>

    <style>

    body {
      padding-top: 20px;
      padding-bottom: 20px;
    }

    /* Custom page header */
    .header {
      padding-bottom: 20px;
      padding-right: 15px;
      padding-left: 15px;
      border-bottom: 1px solid #e5e5e5;
    }

    /* Make the masthead heading the same height as the navigation */
    .header h3 {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 40px;
    }

    /* Customize container */
    .container {
      max-width: 2000px;
    }

    #chart{
         display: flex;
        justify-content: center;
    }

    .form-inline{
         display: flex;
        justify-content: right;
    }

    .button {
        background-color: #4CAF50;
        border: none;
        color: white;
        margin-left: 5px;
        padding: 10px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        border-radius: 4px;
        font-size: 3px;
    }
    .form-control{
        width: 200px;
        height: 30px;
    }

    </style>

    <title>卡顿-ANR</title>

</head>
<body>
<div class="container">
    <div class="header clearfix">
        <nav>
            <div class="pull-right">
                <form class="form-inline" id="form">
                    <div class="form-group">
                        <input type="text" class="form-control" id="term">
                    </div>
                    <button class="button" onclick="search()">查找堆栈</button>
                    <button class="button" onclick="clearSearch()">清除</button>
                    <!-- <button class="button btn" onclick="resetZoom()">还原</button> -->
                </form>
            </div>
        </nav>
        <h3 class="text-muted">卡顿-ANR</h3>
    </div>
    <div id="chart">
    </div>
    <hr>
    <div id="details">
    </div>
</div>

<!-- D3.js -->
<script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script>

<!-- d3-tip -->
<script type="text/javascript" src=https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.9.1/d3-tip.min.js></script>

<!-- d3-flamegraph -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/spiermar/d3-flame-graph@2.0.3/dist/d3-flamegraph.min.js"></script>
</body>
</html>
<div> 类型：SINGLE_MESSAGE</div>
<script type="text/javascript">var interval = 15;</script>
<script type="text/javascript"> var stackFrameText = stackFrameTextJson.value </script>
<script type="text/javascript" src="index.js"></script>
<div>1639ms</div>
<div>main (state = RUNNABLE)</div>